let {expressjwt}=require('express-jwt');

//创建配置对象
let config=expressjwt({
    secret:'star',
    algorithms:['HS256'],
    credentialsRequired:false
}).unless({
    path:[/\/user\//,/\/ranking\//]
})
// .unless({
//     path:[/^\/user/]
// })

module.exports=config